package com.yilin.tms.core.entity.gps;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Location implements Serializable {

    @SerializedName(value = "mLongitude",alternate = {"lon","longitude","Lon","lng"})
    private double mLongitude;
    @SerializedName(value = "mLatitude",alternate = {"lat","latitude","Lat"})
    private double mLatitude;
    @SerializedName(value = "mSpeed",alternate = {"speed","Speed","spd"})
    private float  mSpeed;
    @SerializedName(value = "mBearing",alternate = {"degree","direction","Direction","drc","agl"})
    private float  mBearing;
    @SerializedName(value = "mTime",alternate = {"gpstime","loc_time","gpsTime","GPSTime","time","gtm"})
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date mTime;
    @SerializedName(value = "errTip",alternate = {"err","tip"})
    private String errTip;//异常提示
    @SerializedName(value = "stopTimeTip",alternate = {"stopTime"})
    private String stopTimeTip;//停车提示
    @SerializedName(value = "stop",alternate = {"stop"})
    private boolean stop;//停车


    public boolean isStop() {
        return stop;
    }

    public void setStop(boolean stop) {
        this.stop = stop;
    }

    public String getStopTimeTip() {
        return stopTimeTip;
    }

    public void setStopTimeTip(String stopTimeTip) {
        this.stopTimeTip = stopTimeTip;
    }

    public Date getmTime() {
        return mTime;
    }

    public void setmTime(Date mTime) {
        this.mTime = mTime;
    }

    public double getmLongitude() {
        return mLongitude;
    }

    public void setmLongitude(double mLongitude) {
        this.mLongitude = mLongitude;
    }

    public double getmLatitude() {
        return mLatitude;
    }

    public void setmLatitude(double mLatitude) {
        this.mLatitude = mLatitude;
    }

    public float getmSpeed() {
        return mSpeed;
    }

    public void setmSpeed(float mSpeed) {
        this.mSpeed = mSpeed;
    }

    public float getmBearing() {
        return mBearing;
    }

    public void setmBearing(float mBearing) {
        this.mBearing = mBearing;
    }

    public String getErrTip() {
        return errTip;
    }

    public void setErrTip(String errTip) {
        this.errTip = errTip;
    }
}
